package actions.members;

import java.util.ArrayList;

import veilingAware.UserAware;
import veilingDomein.Factuur;
import veilingDomein.User;
import veilingService.ServiceProvider;

import com.opensymphony.xwork2.ActionSupport;

@SuppressWarnings("serial")
public class MijnFactuur extends ActionSupport implements UserAware {
	private User user;
	private ArrayList<Factuur> facturen;
	
	public String execute() {
		facturen = ServiceProvider.getVeilingService().getFacturen(user);
		return ActionSupport.SUCCESS;
	}
	
	public ArrayList<Factuur> getFacturen() {
		return facturen;
	}
	
	@Override
	public void setUser(User user) {
		this.user = user;
	}
}
